package com.qishenyuan.competition.service;

import com.qishenyuan.competition.dto.UserLoginReq;
import com.qishenyuan.competition.dto.UserUpdateInfo;
import com.qishenyuan.competition.model.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qishenyuan.competition.vo.UserInfoResp;

/**
 * @author qishenyuan
 * @since 2025-03-05
 */
public interface UserService extends IService<User> {

    /**
     * 用户登录
     */
    UserInfoResp login(UserLoginReq req);

    /**
     * 用户登陆态校验
     */
    UserInfoResp checkToken(String token, String uid);

    /**
     * 更新用户信息
     */
    void updateUserInfo(UserUpdateInfo updateInfo);
}
